package exception;
/*
finally块的演示
 */
public class FinallyDemo {
    public static void main(String[] args) {
        try {
            String line=null;
            System.out.println(line.length());
        }catch (Exception e){
            System.out.println("出错并解决了");
        }finally {//一定会执行
            System.out.println("finally继续执行");
        }
        System.out.println("程序结束了");
    }
}
